home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / machine / tp84.c < prev    next >
C/C++ Source or Header  |  2000-04-04  |  992b  |  44 lines

  1. /***************************************************************************
  2.  
  3.   machine.c
  4.  
  5.   Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
  6.   I/O ports)
  7.  
  8. ***************************************************************************/
  9.  
  10. #include "driver.h"
  11. #include "cpu/m6809/m6809.h"
  12.  
  13. extern unsigned char *tp84_sharedram;    /* JB 970829 */
  14.  
  15.  
  16. /* JB 970829 - just give it what it wants
  17.     F104: LDX   $6400
  18.     F107: LDU   $6402
  19.     F10A: LDA   $640B
  20.     F10D: BEQ   $F13B
  21.     F13B: LDX   $6404
  22.     F13E: LDU   $6406
  23.     F141: LDA   $640C
  24.     F144: BEQ   $F171
  25.     F171: LDA   $2000    ; read beam
  26.     F174: ADDA  #$20
  27.     F176: BCC   $F104
  28. */
  29. READ_HANDLER( tp84_beam_r )
  30. {
  31. //    return cpu_getscanline();
  32.     return 255; /* always return beam position 255 */ /* JB 970829 */
  33. }
  34.  
  35. /* JB 970829 - catch a busy loop for CPU 1
  36.     E0ED: LDA   #$01
  37.     E0EF: STA   $4000
  38.     E0F2: BRA   $E0ED
  39. */
  40. WRITE_HANDLER( tp84_catchloop_w )
  41. {
  42.     if( cpu_get_pc()==0xe0f2 ) cpu_spinuntil_int();
  43. }
  44.